<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>代理开单</title>
    <script type="text/javascript" src="/resources/easyui/jquery.min.js"></script>
    <link rel="stylesheet" href="/resources/frozen/css/frozen.css">
</head>
<body>
<header class="ui-header ui-header-positive ui-border-b">
    <h1>代理开单</h1>
</header>
<section class="ui-container">

    <div class="ui-tab">
        <ul class="ui-tab-nav ui-border-b" id="tab1">
            <li id="by" class="current">本月预估</li>
            <li id="sy">上月预估</li>
        </ul>
        <ul class="ui-tab-content">
            <li>
                <ul class="ui-list ui-list-pure ui-border-tb">
                <#if records??&&(records?size>0)>
                    <#list records as o>
                        <li class="ui-border-t">
                            <h4>姓名：${o.nickname!''}</h4>
                            <p style="color: black;">预估收入：<span
                                    style="font-weight: bold;">${(o.yj/2)?string('0.00')}</span></p>
                        </li>
                    </#list>
                </#if>
                </ul>
            </li>
        </ul>
    </div>
    <div style="display: none;">
        <script src="https://s22.cnzz.com/z_stat.php?id=1264425737&web_id=1264425737" language="JavaScript"></script>
    </div>
</section>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $("#tab1 li").click(function () {
            var url = "/agents?openid=${openid!''}";
            url += "&tj=" + $(this).attr("id");
            window.location.href = url;
        });
    <#if tj??>
        $("#tab1 li").removeClass("current");
        $("#${tj!''}").addClass("current");
    </#if>
    });
</script>